<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<HTML DIR="LTR">
	<HEAD>
		<TITLE>HarePoint Explorer for SharePoint - Example of work with Active Directory</TITLE>
		<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
		<META NAME="Product" CONTENT="HarePoint Explorer for SharePoint">
		<META NAME="CHARSET" CONTENT="iso-8859-1">
		<META NAME="KEYWORDS" CONTENT="">
		<LINK REL="stylesheet" MEDIA="SCREEN" TYPE="text/css" HREF="../css/mailto_exchange.css">
			<LINK REL="stylesheet" TYPE="text/css" HREF="../css/coUA_Ex.css">
				<LINK REL="stylesheet" TYPE="text/css" HREF="../css/coUA.css">
					<LINK REL="stylesheet" MEDIA="PRINT" TYPE="text/css" HREF="../css/CoUA_Print.css">
						<SCRIPT LANGUAGE="JScript" SRC="../scr/shared.js"></SCRIPT>
						<SCRIPT LANGUAGE="javascript" SRC="../scr/mailto.en.js"></SCRIPT>
	</HEAD>
	<BODY>
		<DIV CLASS="titleNodeLevel1">HarePoint Explorer for SharePoint - An example of working with Active Directory</DIV>
		<DIV CLASS="titleNodeLevel2">&nbsp;</DIV>
		<H1>An example of working with Active Directory</H1>

        <p>
            As mentioned in the Introduction, HarePoint Explorer for SharePoint can be used 
            for operations not only with the SharePoint object model, but also with other 
            object models built on the basis of the .NET platform.</p>

<p>As an example, let us review the object model which provides access to the Active Directory objects.</p>

<p>Each node of Active Directory in the .NET model is presented via object of the <b>DirectoryEntry</b> type. TDirectoryEntry</b> type. To access the root node, we can use the <b>
    DirectoryEntry</b> constructor without parameters.</p>

<p>We will perform the following for that:
<ol>
<li> Create new script window.</li>
<li> In the upper right window part, add reference to the <b>
    System.DirectoryServices.dll</b> assembly to the list of additional references.</li>
<li> Create the <b>DirectoryEntry</b> object with the help of the <b>new</b> operator and 
    return the reference to the created object.</li>
</ol>
</p>

<p><A ID="ExPand" href="#">Show screenshot</A><div class="expand3"><center>
<img src="../imgs/image029.png">
</center></div></p>

<p>As a result of script execution, new bAs a result of the script execution, new browser window will be opened; using 
    this window the whole hierarchy of Active Directory can be researched:</p>

<p><A ID="ExPand" href="#">Show screenshot</A><div class="expand3"><center>
<img src="../imgs/image031.png">
</center></div></p>

<SCRIPT LANGUAGE="jscript" SRC="../scr/mkfoot.en.js"></SCRIPT>
</BODY>
</HTML>